<?php
$data = json_encode(['username'=>'PHP']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>json数据转换与本地存储及$scope数据序列化提交到后台</title>
    <script src="./lib/angular.min.js"></script>
</head>
<body ng-app="wu">
<div ng-controller="ctrl">
</div>
<script>
    var m = angular.module('wu', []);
    m.controller('ctrl', ['$scope', function (scope) {

        scope.data = '{{}}'


    }]);
</script>

</body>
</html>